package com.cyzy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.dao.UserRole;
import com.cyzy.pojo.Role;
import com.cyzy.pojo.User;

import java.util.List;

public interface UserService {

    User login(String userAcc, String userPwd);

    Page<UserRole> selectAllUser(UserRole userRole, int pageSize, int pageNum);

    List<Role> selectAllRole(Role role);

    User selectUserByUserAccAndUserEmail(String userAcc, String userEmail);

    int forgotPassword(String userAcc, String userEmail);

    int disabledUser( Integer id);

    int updateUser(UserRole userRole);

    int updateUserStatus(UserRole userRole);

    int deleteUser(List<Integer> id);

    int updateUserPwd(User user);

    void insertUser(UserRole userRole);

    UserRole exitUser(UserRole userRole);

    int addUserRole(UserRole userRole);

    List<UserRole> getUserRole(UserRole userRole);

    List<UserRole> getUser(UserRole userRole);
}
